/**
 * 
 */
package com.db.stockexchange.common.messages;


/**
 * @author Rayman
 * Represents message of FIX protocol
 */
public class FIXMessage {
	private MessageType type;
	private String senderCompID;

	protected FIXMessage(MessageType type, String senderCompID) {
		this.type = type;
		this.senderCompID = senderCompID;
	}

	public MessageType getType() {
		return type;
	}

	public String getSenderCompID() {
		return senderCompID;
	}
	
	@Override
	public String toString() {
		return new StringBuilder().append("[").append(type).append("] ").append(senderCompID).toString();
	}
}
